@extends('www/zc-666/layout')
@section('title','订单列表')

@section('content')
<div class="admin-orders">
    <p class="notice">距离众筹结束还剩：{{$time}}</p>
    <div class="invitation">
        <a href="/www/zhongchou666/enter?fun=index&isManager=1&managerId={{$managerId}}">邀请好友一起666</a>
    </div>

    <table class="tabs">
        <tr>
            <td class=" @if($isSuccess==-1) checked @endif "><a href="/www/zhongchou666/enter?fun=admin_orders&isSuccess=-1">全部({{$totalNum}})</a></td>
            <td class=" @if($isSuccess== 1) checked @endif "><a href="/www/zhongchou666/enter?fun=admin_orders&isSuccess=1">已完成({{$finishedNum}})</a></td>
            <td class=" @if($isSuccess== 0) checked @endif "><a href="/www/zhongchou666/enter?fun=admin_orders&isSuccess=0">进行中({{$unFinishedNum}})</a></td>
        </tr>
    </table>


    <table class="order-list">
        @foreach($orders as $key => $order)
            <tr>
                <td>{{($orders->currentPage() -1) * $orders->perPage() + $key + 1}}</td>
                <td class="headimg"><img src="{{$order->wx_head}}" ></td>
                <td>{{$order->wx_name}}</td>
                <td><a href="/www/zhongchou666/enter?fun=order&orderId={{$order->id}}">{{$order->useTime}}<i class="iconfont icon-gengduo"></i></a></td>
            </tr>
        @endforeach
    </table>


    <div class="pages">{!! $orders->appends(['fun'=>'admin_orders','isSuccess'=>$isSuccess])->links() !!}</div>

</div>
{{--<p><i class="iconfont icon-icon165"></i> 距离众筹结束还剩：17天13小时44分27秒</p>--}}

@endsection